﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using famails.iface;
using famails.dao;
using famails.dto;

namespace famails.bus
{
    /// <summary>
    /// Summary description for MailStorageBUS
    /// </summary>
    public class MailStorageBUS
    {
        MailStorageDAO sign = null;
        public MailStorageBUS()
        {
            sign = new MailStorageDAO();
        }
        public void tblMailStorage_insert(MailStorageDTO dt)
        {
            sign.tblMailStorage_insert(dt);
        }
        public void tblMailStorage_Delete(int limitId)
        {
            sign.tblMailStorage_Delete(limitId);
        }
        public System.Data.DataTable GetAll()
        {
            return sign.GetAll();
        }

        public System.Data.DataTable GetByUserIdMailStorage(int limitId)
        {
            return sign.GetByUserIdMailStorage(limitId);
        }
        public void tblMailStorage_Update(MailStorageDTO dt)
        {

            sign.tblMailStorage_Update(dt);
        }
        public DataTable GetAvailableMailStorage(int limitId)
        {
            return sign.GetAvailableMailStorage(limitId);
        }
        public DataTable viladate_MailStoragelimint(string under, object id)
        {
            return sign.viladate_MailStorage(under, id);
        }
        public DataTable check_delete_MailStorage(int limitId)
        {
            return sign.check_delete_MailStorage(limitId);

        }
        public DataTable check_delete_clientregister(int limitId)
        {
            return sign.check_delete_clientregister(limitId);
        }

    }
}